<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <title>JQuery Validation Engine--HELLO WORD</title>
		<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>
		<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script src="js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript"></script>
		<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
		<script type="text/javascript">
			$(function(){
				$("form[name='myform']").submit(function(){
					if($("form[name='myform']").validationEngine('validate')){
						alert("提交成功！");
					}
					return false;
				})
				
				$("form[name='myform']").validationEngine('attach');

			})
		</script>
    </head>
    <body>
        <h1>jQuery.validationEngine</h1>
        <h2>myform</h2>
        <form name="myform">
			<input type="text" class="validate[required]" id="name" /><br/>
			<input type="submit" value="提交"/>
		</form>
    </body>
</html>
